package com.emergency.examine.domain;

import com.emergency.base.domain.BaseEntity;
import com.emergency.examine.common.ExamType;
import com.emergency.examine.common.ExamDiff;

import javax.persistence.*;
import java.util.List;

//题目表
@Entity
@Table(name = "ex_question")
public class Question extends BaseEntity {

    private String title;//标题

    private String note;//题目描述

    private double score;//题目分值

    private Integer count;//使用次数(用一次加一)

    private ExamType type;//题目类型

    private ExamDiff diff;//题目难度

    /*试卷题目*/
    @Transient
    private List<Option> Option;

    @Transient
    private Answer answer;//答案

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public ExamType getType() {
        return type;
    }

    public void setType(ExamType type) {
        this.type = type;
    }

    public ExamDiff getDiff() {
        return diff;
    }

    public void setDiff(ExamDiff diff) {
        this.diff = diff;
    }

    public List<com.emergency.examine.domain.Option> getOption() {
        return Option;
    }

    public void setOption(List<com.emergency.examine.domain.Option> option) {
        Option = option;
    }

    public Answer getAnswer() {
        return answer;
    }

    public void setAnswer(Answer answer) {
        this.answer = answer;
    }
}
